﻿// ------------------------------------------------------------------------------------
//      Copyright (c) uhavemyword@gmail.com. All rights reserved.
//      Created by Ben at 2/4/2013 11:04:46 AM
// ------------------------------------------------------------------------------------

namespace CP.NLayer.Client.WpfClient.Modules.MainHeader
{
    using CP.NLayer.Client.WpfClient.Common;
    using Microsoft.Practices.Prism.Modularity;
    using Microsoft.Practices.Prism.Regions;

    [Module(ModuleName = "Main Header")]
    public class MainHeaderModule : IModule
    {
        private IRegionManager _regionManager;

        public MainHeaderModule(IRegionManager regionManager)
        {
            this._regionManager = regionManager;
        }

        public void Initialize()
        {
            this._regionManager.RegisterViewWithRegion(RegionNames.MainHeaderRegion, typeof(MainHeaderView));
        }
    }
}
